package com.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    // 试试使用浏览器访问: http://localhost:8080/
    @RequestMapping(value = "/", produces = "text/plain;charset=UTF-8") //解决中文乱码
    public String hello() {
        return "Hello World! 第一个 Spring Boot 应用!";
    }
}
